package BehavioralPattern.TemplateMethod;

/**
 * @Classname : HUAWEI
 * @Description : 具体手机类
 * @Author : chentianyu
 * @Date 2023/1/19 01:40
 */


public class HUAWEI extends AbstractPhone {
    @Override
    protected void powerOn() {
        System.out.println("华为手机开机");
    }

    @Override
    protected void screenOn() {
        System.out.println("华为手机屏幕点亮");
    }

    @Override
    protected void appRun() {
        System.out.println("华为手机应用运行");
    }

    @Override
    protected void powerOff() {
        System.out.println("华为手机电量耗尽关机");
    }

    @Override
    protected boolean charge() {
        return true;
    }
}
